package com.smartfactory.sail.entity.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

/**
 * @author 王巨壁
 * @title: CustStatusEnum
 * @projectName smart-sail
 * @description: 客户类型客户类型1.订单客户2,供应商3外发企业
 * @date 2019/7/311:57
 */
public enum CustTypeEnum implements IEnum {
    //客户状态0.正常 1：合作中 2：长时间未合作3还未合作
    DDKH(1,"订单客户"),
    GYS(2,"供应商"),
    WFQY(3,"外发企业")
    ;

    CustTypeEnum(int code, String descp) {
        this.code = code;
        this.descp = descp;
    }


    private final int code;
    private final String descp;

    public int getCode() {
        return code;
    }
    @JsonValue
    public String getDescp() {
        return descp;
    }

    @Override
    public Serializable getValue() {
        return code;
    }
}
